package cn.ucai.day01_Object.pa5_JavaBean;

import cn.ucai.day01_Object.pa3_Dog.Dog;
import cn.ucai.day01_Object.pa5_JavaBean.Person;

public class Test {

	public static void main(String[] args) {
		//引用存放在栈中，对象存放在堆中
		Person p1=new Person();
		p1.setAge(22);
		p1.setName("我的名字");
		
		System.out.println(p1.getAge());
		System.out.println(p1.getName());
	}

}
